import useLogout from '@/hooks/useLogout'
import React from 'react'
import { Alert, Button } from 'react-native'
function Userpage() {

  const logout = useLogout()
  const handleLogout = () => {

    Alert.alert("退出登陆", "确定要退出登录吗？", [{
      text: "取消",
      onPress: logout
    }])
  }


  return (
    <>
      <Button title='退出登陆' onPress={handleLogout} />
    </>
  )
}

export default Userpage